<h2>Pages</h2>
<% if @is_admin %>
  <%= link_to "New Page", new_regulate_admin_regulate_page_path %>
<% end %>
<ul>
  <% @pages.each do |page| %>
    <li>
      <%= page.title %>
      <%= link_to "Show" , regulate_page_path(page) %>
      <%= link_to "Edit" , edit_regulate_admin_regulate_page_path(page) %>
      <% if @is_admin %>
        <%= link_to "Delete" , regulate_admin_regulate_page_path(page), :confirm => 'Are you sure?', :method => :delete, :class => 'delete_link' %>
      <% end %>
    </li>
  <% end %>
</ul>
<% if @is_admin %>
  <%= javascript_include_tag "jquery.min.js" %>
  <%= javascript_include_tag "regulate_index.js" %>
<% end %>
